#!/bih/sh

echo "请输入一个IPv4前缀"
echo "如202.117.128/20"
read IPv4P

#echo "$IPv4P" 
#awk -F. 'awk {print $1}' 
#b=`awk 'BEGIN {record=$IPv4P; print split("record", myarray, "/")}'`

b1=`echo "$IPv4P" | cut -f 1 -d "."`
b2=`echo "$IPv4P" | cut -f 2 -d "."`
b3=`echo "$IPv4P" | cut -f 3 -d "."`
b4=`echo "$IPv4P" | cut -f 4 -d "."`
b5=`echo "$b4" | cut -f 1 -d "/"`
b6=`echo "$b4" | cut -f 2 -d "/"`
echo "$b1"
echo "$b2"
echo "$b3"
echo "$b5"
echo "$b6"
